<?php
defined('IN_TS') or die('Access Denied.');

$userid = aac('user')->isLogin();

$messageid = trim($_POST['messageid']);

$new['message']->delete('message',array('messageid'=>$messageid));

echo '1';